package com.pig4cloud.pig.demo.Service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pig4cloud.pig.demo.Mapper.FansMapper;
import com.pig4cloud.pig.demo.Service.FansService;
import com.pig4cloud.pig.demo.feign.Entity.Fans;
import com.pig4cloud.pig.demo.feign.vo.FansVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 粉丝逻辑业务处理类
 * Created by caoxuel on 2020/10/19 13:47
 * @author caoxuel
 */
@Service
public class FansServiceImpl extends ServiceImpl<FansMapper, Fans> implements FansService {

    @Autowired
    private FansMapper fansMapper;

    @Override
    public IPage<FansVO> queryFansList(Page<?> page, Long id) {
        return fansMapper.queryFansList(page,id);
    }

    @Override
    public IPage<FansVO> queryFollowList(Page<?> page,Long id) {
        return fansMapper.queryFollowList(page,id);
    }
}
